-- $Name: Mainland (EN)$
-- $Version: 2.3$

instead_version "1.9.0"
dofile "eng/util.lua"
dofile "eng/verbs.lua"
dofile "eng/tutorial.lua"
dofile "eng/game/common.lua"
dofile "eng/game/entry1.lua"
dofile "eng/game/entry2.lua"
dofile "eng/game/entry3.lua"
dofile "eng/game/entry4.lua"
dofile "eng/game/entry5.lua"
dofile "eng/game/entry6.lua"
dofile "eng/game/entry7.lua"
dofile "eng/game/entry8.lua"

--game.pic = 'gfx/texture-overlay2.png';
gametitle = font("theme/libs-r.ttf", 40);
titlebg         = function(s)
                    theme.set("scr.gfx.bg", "gfx/texture_title.jpg");
                  end
regbg           = function(s)
                    theme.set("scr.gfx.bg", "gfx/texture.jpg");
                  end

main = scene {
   dsc          = "^^"..txtc(bigheader:txt("Mainland")) .. "^"..txtc("a game on INSTEAD platform")
  ,nosort       = true
  ,enter        = chain_ {
                    titlebg,
                    music_("reachingout", 0)
                  }
  ,Newgame      = chain_ {
                    take_("pants"),
                    take_("jacket"),
                    take_("shoes"), 
                    take_("spyglass"),
                    walk_("gamestart")
                  }
  ,Creators     = walk_("credits")
  ,Tutorial     = walk_("tutorial1")
  ,verbs        = {
                     { "Newgame", "start game", "{}" }
                    ,{ "Tutorial", "tutorial", "{}" }
                    ,{ "Creators", "credits", "{}" }
                  }
}

credits = scene {
   dsc          = quest2:txt([[Credits]])..
				"^"..
				title2:txt([[Version 2.3]])..
				"^^" ..
				title1:txt([[INSTEAD Platform And Meta-Parser]])..
					"^"..
					title2:txt([[	by Peter Kosyh]])..
				"^"..
                    title1:txt([[Story and Programming]])..
					"^"..
					title2:txt([[	by Vasily Voronkov]])..
				"^"..
                    title1:txt([[English Translation and Localization]])..
					"^	"..
					title2:txt([[	by Ryan Joseph]])..
				"^"..
                    title1:txt([[Testing]])..
					"^	"..
					title2:txt([[	by Peter Kosyh,]])..
					"^	"..
					title2:txt([[	Vadim Balashoff,]])..
					"^	"..
					title2:txt([[	and Ryan Joseph]])..
				"^"..	                    
				title1:txt([[Music]]).. 
					"^	"..
					title2:txt([[	by Kevin MacLeod]])..
				"^^"..
                    title2:txt([[	The game includes six instrumentals:]])..
					"^"..
					title2:txt([[		"Clear Waters"]])..
					"^"..
					title2:txt([[		"Cryptic Sorrow"]])..
					"^"..
					title2:txt([[		"Heartbreaking"]])..
					"^"..
					title2:txt([[		"Reaching Out"]])..
					"^"..
					title2:txt([[		"Mourning Song"]])..
					"^"..				
					title2:txt([[		"Wounded"]])..
					"^^"..
					title2:txt([[	Music is available at]])..
					"^"..
					title2:txt([[	http://incompetech.com/music ]])..
					"^^"..
					title2:txt([[	Licensed under Creative Commons:]])..
					"^"..
					title2:txt([[		By Attribution 3.0]])..
					"^"..
					title2:txt([[	creativecommons.org/licenses/by/3.0	]])..	  
				"^^"..
				title1:txt([[Title Image]])..
					"^"..
					title2:txt([[by Nico Trinkhaus]])..
					"^"..
					title2:txt([["Sailing around Mallorca"]])..
					"^"..
					title2:txt([[flickr.com/photos/ntrinkhaus/14242215803]])..
				"^"..
				title1:txt([[End Credits Image]])..
					"^"..
					title2:txt([[by Alex Coitus]])..
					"^"..
					title2:txt([["Islands"]])..
					"^"..
					title2:txt([[flickr.com/photos/alexcoitus/9443789294]])..
				"^"..
                    title1:txt([[Background Texture]])..
					"^"..
					title2:txt([[by Erica Parée]])..
					"^"..
					title2:txt([["Paper Texture 1"]])..
					"^"..
					title2:txt([[flickr.com/photos/pareeerica/2683238976]])..
				"^^"..
                    title1:txt([[INSTEAD Platform & Community]])..
					"^	"..
					title2:txt([[	instead.syscall.ru]])
  ,Back         = walk_("main")
  ,enter        = regbg
  ,verbs        = { { "Back", "return", "{}" } }

}

gamestart = pause {
   time         = 3000
  ,enter        = chain_ {
                    regbg,
                    mute_(3000,3000)
                  }
  ,fading       = 30
  ,next         = "entry1"
}

